<style scoped>
.page-index{width: 100%;height: 100%;overflow: auto;}
</style>
<template>
  <div class="page-index">
    <PageBlock v-for="row in page_back_list" v-bind="row"></PageBlock>
  </div>
</template>

<script>
import PageBlock from "@/components/auto_import/PageBlock.vue";
import {json_decode_object} from "@/js/s94_tool.js";
import {use_config_map} from "@/store/config_map.js";

export default {
  components: {PageBlock},
  data(){
    return {}
  },
  computed: {
    page_back_list(){
      let indexPage = Object.values(use_config_map().page_map).find(row=>row.type==='index')
      if (indexPage){
        return json_decode_object(indexPage.config_json);
      }else {
        return []
      }
    }
  },
  mounted(){
  }
}
</script>

<style scoped>

</style>